package com.xls.dormitoryservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xls.dormitoryservice.entity.Room;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xls.dormitoryservice.vo.RoomInfoVo;
import com.xls.dormitoryservice.vo.RoomQuery;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xls
 * @since 2021-03-23
 */
public interface RoomService extends IService<Room> {

    boolean saveRoom(Room room);

    boolean updateRoom(Room room);

    Page<Room> getRoomPage(Integer page, Integer limit, RoomQuery roomQuery);

    RoomInfoVo getRoomInfoVo(String roomId);

    void uploadRoomImage(String id, String url);

    void removeRoomImage(String id, String url);
}
